package cz.moglum.bloodb.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import cz.moglum.bloodb.client.objects.RPCObjectFactory;
import cz.moglum.bloodb.client.ui.BlooDBView;

public class BlooDBEditor implements EntryPoint {

	public void onModuleLoad() {
		
		// create the BlooDBView and load it
		BlooDBView view = new BlooDBView();
		
		RootPanel.get().add(view);
		
		//create Object Factory
		RPCObjectFactory objectFactory = new RPCObjectFactory("/objectFactory");
		
		// pass the Object Factory to the view
		view.setObjectFactory(objectFactory);
		
	}

}
